﻿@using HiLand.Utility.Entity
@model LogicStatusInfo
@{
    ViewBag.Title = "Index";

    string messageTip = string.Empty;
    if (Model != null)
    {
        messageTip = Model.Message;
    }
    else
    {
        messageTip = "Please enter your account and password.";
    }
}
@using (Html.BeginForm())
{
    <div class="notification information png_bg">
        <div>
            @messageTip
        </div>
    </div>
    <p>
        <label>
            Username</label>
        <input class="text-input" name="userName" type="text" />
    </p>
    <div class="clear">
    </div>
    <p>
        <label>
            Password</label>
        <input class="text-input" name="password" type="password" />
    </p>
    <div class="clear">
    </div>
    <p>
         <input class="button" type="submit" value="Sign In"  /><input id="btnForgottenPassword" class="button" type="button" value="Forgotten Password" /> &nbsp;   &nbsp;
    </p>
}

<script type="text/javascript">
    $(document).ready(function () {
        $("#btnForgottenPassword").click(function () {
            window.location = '@Url.Action("ForgottenPassword", "Main")';
        });
    });
</script>
